package com.hp.ssmp.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class TOrder {
  @TableId(value = "ORDERID",type = IdType.AUTO)
  private Long orderid;
  private Long userid;
  private Long addressid;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date ordertime;
  private Long orderstatus;
  private BigDecimal totalprice;
  private String remarks;


  public Long getOrderid() {
    return orderid;
  }

  public void setOrderid(Long orderid) {
    this.orderid = orderid;
  }


  public Long getUserid() {
    return userid;
  }

  public void setUserid(Long userid) {
    this.userid = userid;
  }


  public Long getAddressid() {
    return addressid;
  }

  public void setAddressid(Long addressid) {
    this.addressid = addressid;
  }


  public Date getOrdertime() {
    return ordertime;
  }

  public void setOrdertime(Date ordertime) {
    this.ordertime = ordertime;
  }


  public Long getOrderstatus() {
    return orderstatus;
  }

  public void setOrderstatus(Long orderstatus) {
    this.orderstatus = orderstatus;
  }


  public BigDecimal getTotalprice() {
    return totalprice;
  }

  public void setTotalprice(BigDecimal totalprice) {
    this.totalprice = totalprice;
  }


  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  @Override
  public String toString() {
    return "TOrder{" +
            "orderid=" + orderid +
            ", userid=" + userid +
            ", addressid=" + addressid +
            ", ordertime=" + ordertime +
            ", orderstatus=" + orderstatus +
            ", totalprice=" + totalprice +
            ", remarks='" + remarks + '\'' +
            '}';
  }
}
